import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vuex from 'vuex'
Vue.use(Vuex)
// 导入axios
import axios from "@/api/http";
// 将axios放到vue实例上
Vue.prototype.$http = axios;

// this.$http = axios;
// this.$http.get = axios.get

Vue.config.productionTip = false
let _token= localStorage.getItem("jwt") ? localStorage.getItem("jwt") : "";
store.commit("setToken",_token)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
